
#define POWEROFF 0 
#define POWERON 1 

sbit  EWATER = P2^2;
sbit  EWIND = P2^3;
 

void Max1508_init();

void Waterpower();

void Windpower();

void Allpoweroff();

void Allpoweron();